package com.youpingou.client;

import com.youpingou.domain.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @auther Created by yuanxinqi 
 */
@FeignClient("web-service")
public interface WebServiceClient {
    @GetMapping("addressById")
    public Address findAddressByAddressId(@RequestParam("addressId")Integer addressId);


    @PutMapping("/goods/{skuid}/{count}")
    public void updateSkuCount(@PathVariable("skuid") Integer skuid,
                               @PathVariable("count") Integer count);
}